package cn.tedu.ykmall.user.service;

import cn.tedu.ykmall.pojo.userClient.dto.UserInsertDTO;
import cn.tedu.ykmall.pojo.userClient.dto.UserLoginDTO;
import cn.tedu.ykmall.pojo.userClient.vo.UserInfoVO;
import cn.tedu.ykmall.pojo.userClient.vo.UserPasswordVO;
import org.springframework.transaction.annotation.Transactional;

public interface IUserService {
    @Transactional
    void addNew(UserInsertDTO userInsertDTO);
    @Transactional
    String login(UserLoginDTO userLoginDTO);
    @Transactional
    UserInfoVO getUserInfoByNickname(String nickname);
    @Transactional
    void update(UserInfoVO userInfoVO);
    @Transactional
    void updatePassword(UserPasswordVO userPasswordVO);
}
